package com.rqbl.mapper;

import com.rqbl.entity.Bar;
import com.rqbl.entity.Subscribe;
import com.rqbl.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bruce
 * @since 2024-07-19
 */
@Mapper
public interface SubscribeMapper {

    List<User> getSubscribeByBid(Integer bid,Integer page,Integer limit);

    Integer selectAllPostCountByBid(Integer bid);

    void insertSubscribeInfo(Integer uid, Integer bid);

    void deleteSubInfo(Integer uid, Integer bid);

    Subscribe getSubscribeByUB(Integer uid, Integer bid);


    Integer selectAllPostCountByUid(Integer uid);

    List<Bar> getSubscribeByUid(int num,Integer uid, Integer pageSize);
}
